package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.IssueType;
import www.woniuxy.com.class112.entity.IssueTypeExample;

public interface IssueTypeMapper {
    long countByExample(IssueTypeExample example);

    int deleteByExample(IssueTypeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(IssueType record);

    int insertSelective(IssueType record);

    List<IssueType> selectByExample(IssueTypeExample example);

    IssueType selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") IssueType record, @Param("example") IssueTypeExample example);

    int updateByExample(@Param("record") IssueType record, @Param("example") IssueTypeExample example);

    int updateByPrimaryKeySelective(IssueType record);

    int updateByPrimaryKey(IssueType record);
    @Select("select issue_name from issue_type where id=#{id}")
    String queryName(Long id);

    List<IssueType> all();
}